import http from '@/utils/request'

/**
 * 获取验证码
 */
export function getCaptcha() {
  return http.get<{ data: ''; captchaId: '' }>('/admin/base/open/captcha')
}

/**
 * 登录
 */
export function loginAPI(params: any) {
  return http.post<{
    token: ''
  }>('/admin/base/open/login', params)
}
